<h1>添加用户</h1>

<?php
    echo $form->create('User');
    echo $form->input('username', array('label' => '用户名'));
    echo $form->input('password', array('label' => '密码'));
    echo $form->input('password_confirm', array('type' => 'password', 'label' => '确认密码'));
    echo $form->input('role', array('label' => '用户类型',
        'options' => array(
            'student' => '学生',
            'teacher' => '教师',
            'admin' => '管理员',)));
    echo $form->end('确认并添加用户');
?>
